//
//  QHScrollSegmentView.h
//  Bilibili~
//
//  Created by lanou on 16/5/10.
//  Copyright © 2016年 裴启航. All rights reserved.
//

#import <UIKit/UIKit.h>
// 界面头部的ScrollView
@interface QHScrollSegmentView : UIView

@property (nonatomic, assign) NSInteger currentIndex; // 当前segment下标
@property (nonatomic, assign) NSInteger oldIndex;     // 之前segment下标
- (instancetype)initWithFrame:(CGRect)frame titles:(NSArray *)titles index:(NSInteger)index;

// 滑动主界面的时候根据偏移量来更新UI
- (void)updateUIWithProgress:(CGFloat)progress oldIndex:(NSInteger)oldIndex currentIndex:(NSInteger)currentIndex;


@end
